<template>
  <van-tabbar v-model="active" active-color="#ee0a24" inactive-color="#000">
    <van-tabbar-item icon="home-o" to="/home">主页</van-tabbar-item>
    <van-tabbar-item icon="apps-o" to="/classify">分类</van-tabbar-item>
    <van-tabbar-item icon="cart-o" to="/car">购物车</van-tabbar-item>
    <van-tabbar-item icon="user-o" to="/mine">我的</van-tabbar-item>
  </van-tabbar>
</template>

<script>
// import Vue from 'vue';
// import { Tabbar, TabbarItem } from 'vant';

// Vue.use(Tabbar);
// Vue.use(TabbarItem);
import Vue from 'vue';
import { Icon } from 'vant';
Vue.use(Icon);
export default {
  data() {
    return {
      active: 0,
    }
  },
  methods: {}
}
</script>

<style scoped>
@import '../../../public/css/reset.css';

.active {
  width: 100%;
  height: 40px;
  position: fixed;
  left: 0;
  bottom: 0;
  background-color: #fff;
}
</style>
